package com.zyy.sqlSession;

import com.zyy.pojo.MappedStatement;

import java.util.List;

/**
 * @author zyy
 * @date 2020/11/9 11:42 上午
 * @description
 */
public interface SqlSession {

    public <E> List<E> selectList(MappedStatement mappedStatement, Object... params) throws Exception;

    public <T> T selectOne(MappedStatement mappedStatement,Object... params) throws Exception;

    Integer update(MappedStatement mappedStatement,Object... param) throws Exception;

    <T> T getMapper(Class<?> mapperClass);
}
